//
//  UserWalletDetailsRequest.m
//  GSBlockChain
//
//  Created by guoshikeji_a on 2018/12/12.
//  Copyright © 2018 guoshikeji. All rights reserved.
//

#import "UserWalletDetailsRequest.h"

@implementation UserWalletDetailsRequest

- (HttpRequestMethod)requestMethod {
    return GET;
}
- (NSString *)relativelyUrl {
    NSString *stauts = [NSString stringWithFormat:@"%@",@(self.status)];
    return V1_Flow_Wallet_Details(stauts);
}

- (BOOL)success:(NSURLSessionDataTask *)task data:(id)obj {
    BOOL success = [super success:task data:obj];
    if (success) {
        UserWalletDetailsResponse *resp = [UserWalletDetailsResponse yy_modelWithJSON:obj];
        if (self.requestSuccessed) {
            self.requestSuccessed(resp, nil);
        }
    }
    return success;
}

@end
